package com.sojson.base.impl;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 排序字段Bean
 * 
 * @author liu
 * @date 2021-03-16
 */
@Data
@ApiModel("排序字段Bean")
public class OrderItem {

    /** 字段名 */
    @ApiModelProperty("字段名")
    private String column;
    /** 升序还是降序(默认升序) */
    @ApiModelProperty("升序还是降序(默认升序)")
    private boolean asc = true;

    public OrderItem(String column) {
        this.column = column;
    }

    public OrderItem(String column, boolean asc) {
        this.column = column;
        this.asc = asc;
    }

}